﻿@model Achievement.DataModels.Achievements
@{
    Layout = null;
}
<div style="height:20px"><b>上传成果</b></div>
<div style=" padding-top:50px; padding-bottom:50px">
    <div style=" text-align:center; padding-bottom:50px">
    <span style=" color:Red">*如果上传文件中图片过多，或文件过大，上传时间会较长，请耐心等待！</span>
        @using (Html.BeginForm("Upload", "Achievement", FormMethod.Post, new { enctype = "multipart/form-data", onsubmit = "return checkempty()" }))
        {
            <table width="500px" style="margin-left:auto; margin-right:auto; line-height:40px">
                <tr>
                    <td style="text-align:right;">
                        <h5>上传：</h5>
                    </td>
                    <td style="text-align:left;">
                        <input type="file" name="file1" id="file1"/>
                        @Html.HiddenFor(model => model.ID)
                        <br />
                    </td>
                </tr>
                <tr>
                    <td style="text-align:right;">
                        <h5>项目名称：</h5>
                    </td>
                    <td style="text-align:left;">
                        @Html.TextBoxFor(model => model.ProjectName, new { @class = "ckempty" })
                        <span style=" color:Red">*</span>
                    </td>
                </tr>
                <tr>
                    <td style="text-align:right;">
                        <h5>关键词：</h5>
                    </td>
                    <td style="text-align:left;">
                        @Html.TextBoxFor(model => model.KeyWord)
                    </td>
                </tr>
                <tr>
                    <td style="text-align:right;">
                        <h5>参与人：</h5>
                    </td>
                    <td style="text-align:left;">
                        @Html.TextBoxFor(model => model.Participant)
                    </td>
                </tr>
                <tr>
                    <td style="text-align:right;">
                        <h5>所属文件夹：</h5>
                    </td>
                    <td style="text-align:left;">
                        <input type="text" name="category" id="category" value="" />
                    </td>
                </tr>
                <tr>
                    <td style="text-align:right;">
                        <h5>描述：</h5>
                    </td>
                    <td style="text-align:left;">
                        @Html.TextAreaFor(model => model.Desc, new { style = " height:150px; width:300px" })
                    </td>
                </tr>
            </table>
            
        }
    </div>
    <div style=" text-align:center">
        <button id="btnRoles" onclick="$('form').submit()">保存</button>
        <script>
            $("#btnRoles").button();
        </script>
    </div>
</div>
<ul id="categorymenu" class="mcdropdown_menu">
    @Html.Raw(ViewData["ddlParent"].ToString())
</ul>
<script>
    $("#current_rev").html("v" + $.mcDropdown.version);
    $("#category").mcDropdown("#categorymenu", {
        select: TakeFolderValue,
        allowParentSelect: true,
        delim: "=>"
    });
    var dd = $("#category").mcDropdown();
    dd.setValue(@Model.Folder);
    function TakeFolderValue(v) {
        //alert(v);
    }
    $(".btn").button();
</script>